export function debounce(func: Function, wait = 750) {
  let timer: number;
  return function (..._: any[]) {
    if (timer) {
      clearTimeout(timer)
    }
    timer = setTimeout(() => {
      func.apply(func,arguments)
    }, wait);
  };
}
